package com.whcoding.international.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @program: International
 * @description:
 * @author: whcoding
 * @create: 2022-08-02 15:44
 **/

@Configuration
public class MyMvcConfig implements WebMvcConfigurer {

	@Bean
	public LocaleResolver localeResolver(){
		return new MyLocaleResolver();
	}
}
